package bjtu.tjj.simpledy.service;


import bjtu.tjj.simpledy.dto.NameAndPwdDTO;
import bjtu.tjj.simpledy.dto.PwdDTO;
import bjtu.tjj.simpledy.dto.UserDTO;
import org.springframework.web.multipart.MultipartFile;

public interface UserService {
    void register(NameAndPwdDTO nameAndPwdDTO);

    String login(NameAndPwdDTO nameAndPwdDTO);

    void logout();

    void destroy(PwdDTO pwdDTO);

    String updateAvatar(MultipartFile avatar);

    UserDTO getSelf();
}
